import os 
import sys

from sayhello import app

WIN = sys.platform.startswith('win')
if WIN:
    prefix = 'sqlite:///'
else:
    prefix = 'sqlite:////'

# print(os.path.dirname(app.root_path))
dev_db = prefix + os.path.join(os.path.dirname(app.root_path), 'data.db')
SECRET_KEY = os.getenv('SECRET_KEY', 'secret string')
SQLALCHEMY_TRACK_MODIFICATIONS = False   # 该参数用来控制是否跟踪对象的修改并发出现信号，若禁用，则能够提高性能
SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URI',dev_db)

